<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><c:out value="${context.title }" /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<link rel="stylesheet"
	href="/group/ui-component/chart/styles/flowchart.css" type="text/css">

</head>

<body>

<c:set var="platformId" value="11" />
<c:set var="platformName" value="${context.nav1}" />
<c:set var="directoriesId" value="directories11" />
<c:set var="rootGroupsId" value="rootGroups11" />
<c:set var="rootGroupsSizeId" value="rootGroups11Size" />




<table
	style="border-left: 1px dashed #666666; border-bottom: 1px solid #d2d4d4">
	<c:set var="navCount" value="0" />
	<c:if test="${navCount%4==0 }">
		<tr>
	</c:if>
	<c:forEach var="directory" items="${requestScope[directoriesId]}">

		<td valign=top style="border-right: 1px dashed #666666">
		<table width="190" cellspacing="0" cellpadding="0">

			<tr>
				<td valign=top align=center><a href="/group/news${context.postfix }?nav=1"><c:out value='${directory.name}' /></a></td>
			</tr>
			<tr>



				<td valign=top>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">

					<c:set var="groups" value="${directory.id }groups" />
					<c:forEach var="groupItem" items="${requestScope[groups]}">
						<tr>
							<td nowrap>
							<div
								style="COLOR: #808080; font-size: 11px; width: 190px; overflow: hidden"><c:if
								test="${!context.encryptedUrl1}">
								<a
									href="/group/newsView<c:out value='${context.postfix}'/>?gid=<c:out value='${groupItem.id }'/>"><c:if
									test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
									<img src="/${groupItem.pic}" width=12 border=0 />
								</c:if><c:if
									test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
									<img src="/group/images/info.gif" width=12 border=0 />
								</c:if><c:out value='${groupItem.name }' /></a>
							</c:if><c:if test="${context.encryptedUrl1}">
								<c:set var='urlFragmentStr' value='?gid=${groupItem.id}' />
								<c:set var='urlFragment'
									value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
								<a
									href="/group/newsView<c:out value='${context.postfix }'/>/~<c:out value='${urlFragment}'/>"><c:if
									test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
									<img src="/${groupItem.pic}" width=12 border=0 />
								</c:if><c:if
									test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
									<img src="/group/images/info.gif" width=12 border=0 />
								</c:if><c:out value='${groupItem.name }' /></a>
							</c:if></div>
							</td>

						</tr>
					</c:forEach>



				</table>
				</td>
			</tr>

		</table>
		</td>
		<c:if test="${navCount%4==3 }">
			</tr>
		</c:if>
		<c:set var="navCount" value="${navCount+1 }" />
	</c:forEach>
	<c:forEach var="groupItem" items="${requestScope[rootGroupsId]}">

		<c:if test="${navCount%4==0 }">
			<tr>
		</c:if>
		<td valign=top style="border-right: 1px dashed #666666">
		<table width="190" border="0" cellspacing="0" cellpadding="0">

			<tr>
				<td valign=top align=center><c:if
					test="${!context.encryptedUrl1}">
					<a
						<c:if test="${groupItem.id==param.gid||groupItem.id==group.id }">style="color:red;font-weight:bold;"</c:if>
						href="/group/newsView<c:out value='${context.postfix}'/>?gid=<c:out value='${groupItem.id }'/>"><c:if
						test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
						<img src="/${groupItem.pic}" width=12 border=0 />
					</c:if><c:if
						test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
						<img src="/group/images/info.gif" width=12 border=0 />
					</c:if><c:out value='${groupItem.name }' /></a>
				</c:if> <c:if test="${context.encryptedUrl1}">
					<c:set var='urlFragmentStr' value='?gid=${groupItem.id}' />
					<c:set var='urlFragment'
						value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
					<a
						<c:if test="${groupItem.id==param.gid||groupItem.id==group.id }">style="color:red;font-weight:bold;"</c:if>
						href="/group/newsView<c:out value='${context.postfix }'/>/~<c:out value='${urlFragment}'/>"><c:if
						test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
						<img src="/${groupItem.pic}" width=12 border=0 />
					</c:if><c:if
						test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
						<img src="/group/images/info.gif" width=12 border=0 />
					</c:if><c:out value='${groupItem.name }' /></a>
				</c:if></td>
			</tr>


		</table>
		</td>
		<c:if test="${navCount%4==3 }">
			</tr>
		</c:if>
		<c:set var="navCount" value="${navCount+1 }" />
	</c:forEach>




	<c:set var="platformId" value="22" />
	<c:set var="platformName" value="${context.nav2}" />
	<c:set var="directoriesId" value="directories22" />
	<c:set var="rootGroupsId" value="rootGroups22" />
	<c:set var="rootGroupsSizeId" value="rootGroups22Size" />



	<c:forEach var="directory" items="${requestScope[directoriesId]}">
		<c:if test="${navCount%4==0 }">
			<tr>
		</c:if>
		<td valign=top style="border-right: 1px dashed #666666">
		<table width="190" cellspacing="0" cellpadding="0">

			<tr>
				<td valign=top align=center><a href="/group/community${context.postfix }?nav=1"><c:out value='${directory.name}' /></a></td>
			</tr>
			<tr>



				<td valign=top>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">

					<c:set var="groups" value="${directory.id }groups" />
					<c:forEach var="groupItem" items="${requestScope[groups]}">
						<tr>
							<td nowrap>
							<div
								style="COLOR: #808080; font-size: 11px; width: 190px; overflow: hidden"><c:if
								test="${!context.encryptedUrl2}">
								<a
									href="/group/communityView<c:out value='${context.postfix}'/>?gid=<c:out value='${groupItem.id }'/>"><c:if
									test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
									<img src="/${groupItem.pic}" width=12 border=0 />
								</c:if><c:if
									test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
									<img src="/group/images/info.gif" width=12 border=0 />
								</c:if><c:out value='${groupItem.name }' /></a>
							</c:if><c:if test="${context.encryptedUrl2}">
								<c:set var='urlFragmentStr' value='?gid=${groupItem.id}' />
								<c:set var='urlFragment'
									value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
								<a
									href="/group/communityView<c:out value='${context.postfix }'/>/~<c:out value='${urlFragment}'/>"><c:if
									test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
									<img src="/${groupItem.pic}" width=12 border=0 />
								</c:if><c:if
									test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
									<img src="/group/images/info.gif" width=12 border=0 />
								</c:if><c:out value='${groupItem.name }' /></a>
							</c:if></div>
							</td>

						</tr>
					</c:forEach>



				</table>
				</td>
			</tr>

		</table>
		</td>
		<c:if test="${navCount%4==3 }">
			</tr>
		</c:if>
		<c:set var="navCount" value="${navCount+1 }" />
	</c:forEach>
	<c:forEach var="groupItem" items="${requestScope[rootGroupsId]}">

		<c:if test="${navCount%4==0 }">
			<tr>
		</c:if>
		<td valign=top style="border-right: 1px dashed #666666">
		<table width="190" border="0" cellspacing="0" cellpadding="0">

			<tr>
				<td valign=top align=center><c:if
					test="${!context.encryptedUrl2}">
					<a
						
						href="/group/communityView<c:out value='${context.postfix}'/>?gid=<c:out value='${groupItem.id }'/>"><c:if
						test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
						<img src="/${groupItem.pic}" width=12 border=0 />
					</c:if><c:if
						test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
						<img src="/group/images/info.gif" width=12 border=0 />
					</c:if><c:out value='${groupItem.name }' /></a>
				</c:if> <c:if test="${context.encryptedUrl2}">
					<c:set var='urlFragmentStr' value='?gid=${groupItem.id}' />
					<c:set var='urlFragment'
						value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
					<a
						 
						href="/group/communityView<c:out value='${context.postfix }'/>/~<c:out value='${urlFragment}'/>"><c:if
						test="${not empty groupItem.pic&&fn:indexOf(groupItem.pic,'upload')!=-1 }">
						<img src="/${groupItem.pic}" width=12 border=0 />
					</c:if><c:if
						test="${empty groupItem.pic||fn:indexOf(groupItem.pic,'upload')==-1 }">
						<img src="/group/images/info.gif" width=12 border=0 />
					</c:if><c:out value='${groupItem.name }' /></a>
				</c:if></td>
			</tr>


		</table>
		</td>
		<c:if test="${navCount%4==3 }">
			</tr>
		</c:if>
		<c:set var="navCount" value="${navCount+1 }" />
	</c:forEach>

</table>





<%--
<table style="border-left:1px dashed #666666;border-bottom:1px solid #d2d4d4">
<c:set var="navCount" value="0" />
<c:if test="${navCount%4==0 }"><tr></c:if>
<c:forEach var="platformNavGroup" items="${platform1NavGroups }">
	<c:set var="gmsgs" value="${platformNavGroup.id }msgs" />
	<td valign=top style="border-right:1px dashed #666666" >
	<table width="240" cellspacing="0" cellpadding="0">
 
		<tr>
			<td  valign=top align=center> <c:if
				test="${!(context.encryptedUrl1) }">
				<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
					href="/group/newsView<c:out value='${context.postfix}' />?gid=<c:out value='${platformNavGroup.id }'/>"><b><c:out
					value="${platformNavGroup.name }" /></b></a>
			</c:if><c:if test="${(context.encryptedUrl1) }">
				<c:set var='urlFragmentStr' value="?gid=${platformNavGroup.id }" />
				<c:set var='urlFragment'
					value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
				<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
					href="/group/newsView<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"><b><c:out
					value="${platformNavGroup.name }" /></b></a>
			</c:if> </td>
		</tr>
		<tr>



			<td valign=top >
			<table width="100%" border="0" cellspacing="0" cellpadding="0">

				<c:forEach var="message" items="${requestScope[gmsgs] }">
					<tr>
						<td  nowrap><div style="COLOR: #808080; font-size:11px; width:238px;overflow:hidden"><c:if test="${!(context.encryptedUrl1) }">[<a style="COLOR: #808080; font-size:11px;"
								href="/group/newsView<c:out value='${context.postfix}' />?gid=<c:out value='${platformNavGroup.id }'/>&tid=<c:out value='${message[1] }'/>"><c:out
								value='${navTopicMap[message[1]]}' /></a>]</c:if> <c:if
							test="${(context.encryptedUrl1) }">
							<c:set var='urlFragmentStr'
								value="?gid=${platformNavGroup.id }&tid=${message[1] }" />
							<c:set var='urlFragment'
								value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />[<a style="COLOR: #808080; font-size:11px;"
								href="/group/newsView<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"><c:out
								value='${navTopicMap[message[1]]}' /></a>]</c:if> <c:if
							test="${!(context.encryptedUrl1) }">
							<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
								href="/group/messagedetail<c:out value='${context.postfix}' />?id=<c:out value='${message[0]}' />"
								target=_blank> <c:if test="${empty param.key }">
								<c:out value='${message[2]}' />
							</c:if> <c:if test="${not empty param.key }">
								<c:out
									value="${grouptalk:getStringWithRedKey(message[2],param.key)}"
									escapeXml="false" />
							</c:if> </a>
						</c:if> <c:if test="${(context.encryptedUrl1) }">
							<c:set var='urlFragmentStr' value="?id=${message[0] }" />
							<c:set var='urlFragment'
								value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
							<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
								href="/group/messagedetail<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"
								target=_blank> <c:if test="${empty param.key }">
								<c:out value='${message[2] }' />
							</c:if> <c:if test="${not empty param.key }">
								<c:out
									value="${grouptalk:getStringWithRedKey(message[2],param.key)}"
									escapeXml="false" />
							</c:if> </a>
						</c:if></div></td>

					</tr>
				</c:forEach>

 

			</table>
			</td>
		</tr>
 
	</table>
</td>
 <c:if test="${navCount%4==3 }"></tr></c:if>
<c:set var="navCount" value="${navCount+1 }" />
</c:forEach>
<c:forEach var="platformNavGroup" items="${platform2NavGroups }">
							<c:set var="gmsgs" value="${platformNavGroup.id }msgs" />
							<c:if test="${navCount%4==0 }"><tr></c:if> 
							<td valign=top style="border-right:1px dashed #666666" >
							<table width="240" border="0" cellspacing="0" cellpadding="0">
							 
								<tr>
									<td valign=top align=center><c:if
										test="${!(context.encryptedUrl2) }">
										<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
											href="/group/communityView<c:out value='${context.postfix}' />?gid=<c:out value='${platformNavGroup.id }'/>"><b><c:out
											value="${platformNavGroup.name }" /></b></a>
									</c:if><c:if test="${(context.encryptedUrl2) }">
										<c:set var='urlFragmentStr'
											value="?gid=${platformNavGroup.id }" />
										<c:set var='urlFragment'
											value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
										<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
											href="/group/communityView<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"><b><c:out
											value="${platformNavGroup.name }" /></b></a>
									</c:if></td>
								</tr>
								<tr>



									<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">

										<c:forEach var="message" items="${requestScope[gmsgs] }">
											<tr>
												<td style="COLOR: #808080; font-size:11px;"><c:if test="${!(context.encryptedUrl2) }">[<a style="COLOR: #808080; font-size:11px;"
														href="/group/communityView<c:out value='${context.postfix}' />?gid=<c:out value='${platformNavGroup.id }'/>&tid=<c:out value='${message[1] }'/>"><c:out
														value='${navTopicMap[message[1]]}' /></a>]</c:if> <c:if
													test="${(context.encryptedUrl2) }">
													<c:set var='urlFragmentStr'
														value="?gid=${platformNavGroup.id }&tid=${message[1] }" />
													<c:set var='urlFragment'
														value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />[<a style="COLOR: #808080; font-size:11px;"
														href="/group/communityView<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"><c:out
														value='${navTopicMap[message[1]]}' /></a>]</c:if> <c:if
													test="${!(context.encryptedUrl2) }">
													<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
														href="/group/messagedetail<c:out value='${context.postfix}' />?id=<c:out value='${message[0]}' />"
														target=_blank> <c:if test="${empty param.key }">
														<c:out value='${message[2]}' />
													</c:if> <c:if test="${not empty param.key }">
														<c:out
															value="${grouptalk:getStringWithRedKey(message[2],param.key)}"
															escapeXml="false" />
													</c:if> </a>
												</c:if> <c:if test="${(context.encryptedUrl2) }">
													<c:set var='urlFragmentStr' value="?id=${message[0] }" />
													<c:set var='urlFragment'
														value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
													<a style="COLOR: #808080; TEXT-DECORATION: none;font-size:11px;"  
														href="/group/messagedetail<c:out value='${context.postfix}' />/~<c:out value='${urlFragment }' />"
														target=_blank> <c:if test="${empty param.key }">
														<c:out value='${message[2] }' />
													</c:if> <c:if test="${not empty param.key }">
														<c:out
															value="${grouptalk:getStringWithRedKey(message[2],param.key)}"
															escapeXml="false" />
													</c:if> </a>
												</c:if></td>

											</tr>
										</c:forEach>

	 

									</table>
									</td>
								</tr>
					 
							</table>
						 </td>
						 <c:if test="${navCount%4==3 }"></tr></c:if>
						 <c:set var="navCount" value="${navCount+1 }" />
						</c:forEach>
</table>
















 --%>
</body>
</html>

